package com.chinackts.common.idgen;

import java.security.SecureRandom;

/**
 * @author lianhong
 * @since 2018-05-18
 * 生成用户唯一标识，关联后续的cookie、header缓存
 */
public class SecureRandomIdentifierGenerator {

    private static final SecureRandom random = new SecureRandom();

    public static String gen() {
        return Long.toHexString(random.nextLong());
    }
}
